package cn.edu.bzu.ie.sf.mealsmisweb.service.impl;

import cn.edu.bzu.ie.sf.mealsmisweb.entity.District;
import cn.edu.bzu.ie.sf.mealsmisweb.mapper.DistrictMapper;
import cn.edu.bzu.ie.sf.mealsmisweb.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @version v1.0.0
 * @Package : cn.edu.bzu.ie.sf.mealsmisweb.service.impl
 * @Description : TODO
 * @Create on : 2021/8/10 18:51
 * @author: Feng Song 宋锋
 **/
@Repository
public class DistrictServiceImpl implements DistrictService {
    @Autowired
    private DistrictMapper districtMapper;

    /**
     * 获取所有的区县信息列表
     * @return List<District> 区县信息列表
     */
    public List<District> getAllDistrictList(){
        return districtMapper.getAllDistrictList();
    }
}
